package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.MobileSetmealService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/setmeal")
public class SetmealController {

    @Reference
    private MobileSetmealService mobileSetmealService;

    @RequestMapping("/getSetmeal")
    public Result getSetmeal(){
        return mobileSetmealService.getSetmeal();
    }

    @RequestMapping("/findById")
    public Result findById(int id){
        return mobileSetmealService.findById(id);
    }
}
